package entity

import (
	"time"
)

//
type Ranking struct {
	RoleID     int32 `gorm:"primary_key"`
	ActivityID int32 `gorm:"primary_key"`
	ServerID   int32
	Date       int32 // 活动开启的日期
	Points     int64
	//InitValue  int64 //
	Get       bool
	CreatedAt time.Time
	UpdatedAt time.Time
}

func (Ranking) TableName() string {
	return "act_ranking"
}

//func (e *Ranking) Init(date int32) {
//	e.Date = date
//	e.Points = 0
//	e.CreatedAt = time.Now()
//}
